<?php
include_once("inc/config.php");
include_once("inc/conn.php");
include_once("inc/function.php");
include_once("heheadmin/inc/config.php");
if(! isset($_SESSION["get_pwd_ac"]) ){
	header("Location: forgetpass.php");
	exit();
}
$username=$_SESSION["get_pwd_ac"];
$sql = "select id,mobile,is_check_email from users where username = '{$username}' limit 1";
$result = $db->query($sql);
$id=0;
$users = $db->fetch_row($result);
if(empty($users)){
	header("Location: forgetpass.php");
	exit();
}
$phone=$users[1];
$is_check_email=$users[2];
if(!empty($phone)){
	$phone=str_replace(substr($phone,3,4),"****",$phone);
}

?>
<!Doctype html>
<html lang="zh-cn"> 
<head>
<?php 
    require 'public/title.inc_yj.php';
?>
<title>找回登录密码 - <?php echo $web_name ;?></title>
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/forgetpass_1.js"></script>
<link rel="stylesheet" type="text/css" href="style/yj_index.css" />
<script type="text/javascript" src="js/login.js"></script>
</head>
<body>
<?php 
    require 'top2.php';
?>
<div class="forgetPsw-section">
        <div class="mmc-section clearfix">
            <div class="childModal fr">
                <div class="title">请填写以下信息找回密码!</div>
                <div class="progress clearfix">
                    <div class="stepItem step1">
                        <div class="num"></div>
                        <div class="text active">验证手机</div>
                    </div>
                    <div class="stepItem step2 active">
                        <div class="line"></div>
                        <div class="higiLine"></div>
                        <div class="num active"></div>
                        <div class="text active">验证身份</div>
                    </div>
                    <div class="stepItem step3">
                        <div class="line"></div>
                        <div class="higiLine"></div>
                        <div class="num"></div>
                        <div class="text">修改密码</div>
                    </div>
                </div>
                <div class="resetPsw resetStep1">
                    <div class="iptRow">
                            <div class="left">账号：</div>
                            <div class="right">
                                <input type="text" class="publicIpt" name="phoneCaptcha" id="yj_username" disabled="disabled" value="<?php echo $_SESSION["get_pwd_ac"]; ?>">
                            </div>
                        </div>
                        <div class="iptRow">
                            <div class="left">绑定的手机号码：</div>
                            <div class="right">
                                <?php if(empty($phone)){?>
                                <div class="type_sms <?php if(empty($phone)){?> none<?php }?>">
                                    你还没有绑定手机号！
                                </div>
                                <?php }else{ ?>
                                <input id="yj_bindPhone" type="text" class="publicIpt codeIpt" name="mobilePhone" disabled="disabled" value="<?php echo $phone ;?>">
                                <div class="phoneV-code code" id="yj_get_check_code_sms">获取验证码</div>
                                <?php } ?>
                            </div>
                        </div>
                        <div class="iptRow last">
                            <div class="left">收到的验证码：</div>
                            <div class="right">
                                <input type="text" class="publicIpt v-codeIpt" name="captcha" placeholder="请输入收到的验证码" id="yj_check_code">
                            </div>
                        </div>
                        <div class="iptRow last">
                            <div class="left">验证码：</div>
                            <div class="right">
                                <input type="text" class="publicIpt v-codeIpt" name="captcha" placeholder="请输入右侧验证码" id="yj_vcode">
                                <div class="v-code"><img src="vcode.php" width="80" height="30" onclick="this.src='vcode.php?tm=' + Math.random();"></div>
                            </div>
                        </div>
                    <div class="nextBtn publicBtn" id="yj_login">下一步</div>
                </div>        
            </div>
        </div>
</div>

<?php 
    require 'yj_footer.php';
 ?>   
</body>
</html>